package com.easylinkin.linkappapi.lobar.dto.app;

import com.easylinkin.linkappapi.lobar.util.PercentageUtils;
import lombok.Data;

/**
 * @Author: kan yuanfeng
 * @Date: 2022/7/22 14:29
 * @Description:
 */
@Data
public class AppUserGateDTO {

  public AppUserGateDTO() {
  }

  public AppUserGateDTO(String companyName, int sum, int attendance) {
    this.companyName = companyName;
    this.sum = sum;
    this.attendance = attendance;
    this.part = PercentageUtils.computePercentOne(attendance,sum);
  }

  //参建单位名称
  private String companyName;
  //参建单位id
  private String companyProjectId;
  //班组名称
  private String groupName;
  //班组id
  private String groupId;
  //在岗总人数
  private int sum;
  //在场内人数
  private int on;
  //测温人数
  private int temperature;
  //绿码人数
  private int greenCode;
  //覆盖率
  private String coverage;
  //通过率
  private String passRate;
  //今日出勤人数
  private int attendance;
  //出勤率
  private String part;
  //单位承建类型
  private String buildType;
}
